
/* 修改容器样式 */
.home-container {
  display: flex;
  min-height: calc(100vh - 64px);
  background-color: var(--bg-secondary);
  margin-top: 64px;
  padding-top: 8px;
}

/* 左侧分类导航样式 */
.category-menu {
  position: fixed;
  left: 0;
  top: 64px;
  bottom: 0;
  width: 200px;
  background: var(--bg-primary);
  border-right: 1px solid var(--border-color);
  z-index: 999;
  overflow-y: auto;
}

.section-title {
  padding: 16px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
}

.category-list {
  padding: 0 8px;
}

.category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s;
}

.category-item:hover {
  background: var(--hover-bg);
}

.category-item.active {
  color: #00a1d6;
  background: rgba(0, 161, 214, 0.1);
}

.category-item i {
  margin-right: 12px;
  font-size: 16px;
}

.category-item span {
  flex: 1;
}

.divider {
  margin: 12px 16px;
  height: 1px;
  background: var(--border-color);
}

/* 修改滚动条样式 */
.category-menu::-webkit-scrollbar {
  width: 4px;
}

.category-menu::-webkit-scrollbar-thumb {
  background: var(--text-secondary);  /* 使用主题变量 */
  border-radius: 2px;
  opacity: 0.5;
}

.category-menu::-webkit-scrollbar-thumb:hover {
  background: var(--text-primary);  /* 悬浮时使用更深的颜色 */
  opacity: 0.8;
}

.category-menu::-webkit-scrollbar-track {
  background: var(--bg-secondary);  /* 使用主题变量 */
}

.content-wrapper {
  flex: 1;
  margin-left: 200px;
  padding: 0 16px;
  position: relative;
  top: -80px;
  background: var(--bg-primary);
}

.video-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  padding: 20px;
}

.video-item {
  cursor: pointer;
  transition: all 0.3s;
}

.video-cover {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 比例 */
  background: #000;
  border-radius: 6px;
  overflow: hidden;
}

.video-cover .el-image,
.preview-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-item:hover .el-image,
.video-item:hover .preview-video {
  transform: scale(1.05);
}

.video-duration {
  position: absolute;
  right: 4px;
  bottom: 4px;
  padding: 0 4px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 12px;
  border-radius: 2px;
  z-index: 1;
}

.video-info {
  padding: 8px 0;
}

.video-title {
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-meta {
  font-size: 13px;
  color: var(--text-secondary);
}

.play-info {
  margin-bottom: 4px;
}

.dot {
  margin: 0 4px;
}

.up-name {
  color: var(--text-secondary);
  &:hover {
    color: #00AEEC;
  }
}

/* 添加hover效果 */
.video-item:hover {
  transform: translateY(-2px);
}

.video-item:hover .video-title {
  color: #00AEEC;
}

.video-cover .el-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 响应式调整 */
@media screen and (max-width: 1200px) {
  .category-menu {
    width: 160px;
  }
  
  .content-wrapper {
    margin-left: 160px;
  }
  
  .video-list {
    padding: 16px;
  }
}

@media screen and (max-width: 768px) {
  .category-menu {
    width: 60px;
  }
  
  .content-wrapper {
    margin-left: 60px;
  }
  
  .video-list {
    padding: 12px;
    gap: 12px;
  }
}

/* 修改左侧导航样式 */
.fixed-channels {
  margin-bottom: 16px;
}

.divider {
  padding: 0 20px;
  margin: 16px 0;
  color: #999;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #eee;
}

.user-channels {
  margin-bottom: 16px;
}

.channel-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 8px;
}

.tag-content {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
}

.remove-icon {
  font-size: 14px;
  color: #bdbdbd;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: all 0.3s;
  opacity: 0;
  transform: translateX(10px);
  margin-left: auto;
}

.remove-icon:hover {
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.1);
}

.add-more {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  color: #666;
  cursor: pointer;
  transition: all 0.3s;
}

.add-more:hover {
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.1);
}

/* 标签选择器样式 */
.tag-selector {
  max-height: 300px;
  overflow-y: auto;
  padding: 16px;
}

:deep(.el-checkbox) {
  margin-right: 12px;
  margin-bottom: 12px;
}

:deep(.el-checkbox__label) {
  padding-left: 6px;
}

/* 添新样式 */
.divider {
  height: 1px;
  background: #e3e5e7;
  margin: 16px 0;
}

.remove-icon, .add-icon {
  font-size: 14px;
  color: #bdbdbd;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: all 0.3s;
  opacity: 0;
  transform: translateX(10px);
  margin-left: auto;
}

.category-item:hover .remove-icon,
.category-item:hover .add-icon {
  opacity: 1;
  transform: translateX(0);
}

.remove-icon:hover {
  color: #ff4d4f;
  background: rgba(255, 77, 79, 0.1);
}

.add-icon:hover {
  color: #52c41a;
  background: rgba(82, 196, 26, 0.1);
}

.load-more {
  padding: 20px 0;
  text-align: center;
}

.loading-text,
.finished-text {
  color: var(--text-secondary);
  font-size: 14px;
}

.loading-text {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

/* 当显示预览视频时，隐藏图片的hover效果 */
.video-item:hover .video-cover .el-image {
  transform: scale(1.05);
}

.video-item:hover .video-cover .preview-video {
  transform: none;
}

/* 添加全部分类的图标样式 */
.icon-all {
  /* 可以使用一个合适的图标 */
  font-size: 16px;
  margin-right: 12px;
}

/* 添加视频播放器容器样式 */
.video-player-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px;
}

/* 添加作者名称样式 */
.author-info {
  display: flex;
  align-items: center;
  gap: 4px;
}

.author-name {
  color: var(--text-secondary);
  font-size: 13px;
  &:hover {
    color: var(--text-primary);
  }
}
